﻿<%@ Page Title="管理测评项目-首家汽车行业人才测评系统" Language="C#" MasterPageFile="~/Enterprise/SiteEnterprise.Master"
    AutoEventWireup="true" CodeBehind="ManageActivity.aspx.cs" Inherits="EvaluationSystem.ManageActivity" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

                <asp:GridView ID="grVActivityManage" runat="server" AutoGenerateColumns="False" CellPadding="4"
                    DataKeyNames="activity_id,position_id" ForeColor="#333333" GridLines="None" Width="100%"
                    OnRowCommand="GrVActivityManage_RowCommand" OnRowDataBound="GridView1_RowDataBound"
                    EnableViewState="False">
                    <FooterStyle BackColor="#63C1CD" Font-Bold="True" ForeColor="White" />
                    <Columns>
                        <asp:TemplateField HeaderText="选择" Visible="false">
                            <ItemTemplate>
                                <asp:CheckBox ID="CB_Select" runat="server" AutoPostBack="false" />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField DataField="activity_id" HeaderText="项目ID" ReadOnly="True" SortExpression="activity_id"
                            Visible="false" />
                        <asp:BoundField DataField="activity_positionid" HeaderText="岗位ID" ReadOnly="True"
                            SortExpression="activity_positionid" Visible="false" />
                        <asp:BoundField DataField="activity_name" HeaderText="项目名称" SortExpression="activity_name">
                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                        </asp:BoundField>
                        <asp:BoundField DataField="position_name" HeaderText="岗位类别" SortExpression="activity_positionid">
                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                        </asp:BoundField>
                        <asp:BoundField DataField="activity_viewreport" HeaderText="查看权限" SortExpression="activity_viewreport">
                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                        </asp:BoundField>
                        <asp:BoundField DataField="activity_createtime" HeaderText="创建时间" SortExpression="activity_createtime">
                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                        </asp:BoundField>
                        <asp:BoundField DataField="activity_holdtime" HeaderText="停用时间" NullDisplayText="测试中"
                            SortExpression="activity_holdtime">
                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                        </asp:BoundField>
                        <asp:ButtonField DataTextField="activity_status" ButtonType="Button" HeaderText="操作"
                            CommandName="DisableActivity" Visible="true" ControlStyle-CssClass="bluebtn">
                            <ControlStyle CssClass="bluebtn"></ControlStyle>
                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                        </asp:ButtonField>
                        <asp:HyperLinkField DataNavigateUrlFields="activity_id" DataNavigateUrlFormatString="QuestionRepeater.aspx?actid={0}"
                            HeaderText="预览题目" Text="预览" Target="_blank">
                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                        </asp:HyperLinkField>
                        <asp:ButtonField ButtonType="Button" HeaderText="序列号" CommandName="GuidSetting" Text="生成"
                            Visible="false" />
                        <asp:HyperLinkField DataNavigateUrlFields="activity_id" DataNavigateUrlFormatString="RptSetings.aspx?actid={0}"
                            HeaderText="报告设置" Text="设置">
                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                        </asp:HyperLinkField>
                    </Columns>
                    <RowStyle BackColor="#F7F6F3" ForeColor="#333333" Height="30px" />
                    <EmptyDataTemplate>
                        您好！贵公司还没有创建测评项目，请联系北京劲马奥通顾问有限公司。
                    </EmptyDataTemplate>
                    <EditRowStyle BackColor="#999999" />
                    <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                  
                    <HeaderStyle BackColor="#63C1CD" Font-Bold="True" ForeColor="White" />
                    <AlternatingRowStyle BackColor="White" />
                </asp:GridView>
           
</asp:Content>
